function name() {
	return "Each With Object";
}

function execute() {
	var result = context.result = [];

	panda.render("test", function($) {
		$.each({a: 1, b: 2}, function(k, v){
			result.push(k);
			result.push(v);
			result.push(this);
		});
	});
}

function verify() {
	var result = context.result;

	Assert.assertEquals(6, result.length, 0);

	Assert.assertEquals("a", result[0]);
	Assert.assertEquals(1, result[1], 0);	
	Assert.assertEquals(1, result[2].valueOf(), 0);

	Assert.assertEquals("b", result[3]);
	Assert.assertEquals(2, result[4], 0);
	Assert.assertEquals(2, result[5].valueOf(), 0);
}
